home *** CD-ROM | disk | FTP | other *** search
/ Internet Tools (InfoMagic) / Internet Tools.iso / dos_win / winsock / maillist / 94-05.Z / 94-05 / 000159_news@bigblue.oit.unc.edu_Wed May 11 00:49:04 1994.msg < prev    next >
Internet Message Format  |  1994-05-31  |  7KB

  1. Received: from bigblue.oit.unc.edu by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
  2.           id AA02802; Thu, 12 May 1994 09:15:08 -0400
  3. Received: by bigblue.oit.unc.edu (AIX 3.2/UCB 5.64/4.03)
  4.           id AA34167; Thu, 12 May 1994 08:50:22 -0400
  5. Received: from GATEWAY by bigblue with netnews
  6.     for winsock@sunsite.unc.edu (winsock@sunsite.unc.edu)
  7. To: winsock@sunsite.unc.edu
  8. Date: Wed, 11 May 1994 00:49:04 GMT
  9. From: paul@atlas.abccomp.oz.au (Paul Brooks)
  10. Message-Id: <CpM4xs.74G@atlas.abccomp.oz.au>
  11. Organization: TurboSoft Pty Ltd, Sydney, Australia
  12. Sender: ses
  13. References: <2qmtc5$en2@panix.com>
  14. Subject: Re: How is it meant to be implemented?
  15.  
  16. In article <2qmtc5$en2@panix.com> jsb@panix.com (J. S. B'ach) writes:
  17. |What is the intended implementation for the cancel blocking/async call
  18. |parts of the winsock API?  Or how did anyone out there actually
  19. |implement it?
  20.  
  21. All Winsock vendors have/should have implemented it - its not that hard
  22. a concept, really.
  23.  
  24. Windows is sort-of multi-tasking. While one program is doing something,
  25. another can do something that interrupts it. In the case of
  26. a blocking sockets call, for example 'recv()' on a socket with no data,
  27. the WINSOCK.DLL (or some underlying layer) will be sitting in a loop
  28. running something like:
  29.  
  30.     while (!Cancelled)
  31.     {    if (Data_has_Arrived)
  32.         {    Copy_to_user_buffer();
  33.             return;
  34.         }
  35.         Yield_to_windows();
  36.     }
  37.     return (WSAINTR);
  38.  
  39. where Yield_to_windows() is similar to the sample default blocking hook
  40. in the Winsock manual - i.e., it calls Peek_Message() or similar,
  41. that returns control to Windows, allowing other apps to run.
  42.     While Windows has control, the message loop within the application
  43. that is waiting for the data may be activated, and the user may have
  44. pressed a "Cancel" button, in which case the application will call
  45. WSACancelBlockingCall(), which will set the "Cancelled" variable
  46. associated with the socket.
  47.     When Windows has finished there and returns control to the
  48. DLL, it will find the "Cancelled" variable has been set, and return 
  49. back to the app. that called it.
  50.  
  51. WSACancelAsyncCall() works similarly. A previous Async. call that
  52. has not yetr returned will have some sort of data structure allocted within,
  53. so the DLL can associate the reply with the correct app. and post
  54. the required message. Calling WSACancelAsyncCall() tells the DLL to clean
  55. up the data structure, as the answer is not needed. When/if the answer does
  56. come back, it will be ignored.
  57.  
  58. Hope this helps.
  59.  
  60. -- 
  61. Paul Brooks              |paul@abccomp.oz.au       |Emerging Standard:
  62. TurboSoft Pty Ltd        |pwb@newt.phys.unsw.edu.au|  one that has not yet
  63. 579 Harris St., Ultimo   |                         |  been superseded.
  64. Sydney Australia 2007    |ph: +61 2 281 3155       |  
  65. From backman@mailserv-B.ftp.com Thu May 12 05:27:46 1994
  66. Received: from ftp.com (wd40.ftp.com) by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
  67.           id AA05149; Thu, 12 May 1994 09:25:14 -0400
  68. Received: from ftp.com by ftp.com  ; Thu, 12 May 1994 09:25:07 -0400
  69. Received: from mailserv-B.ftp.com by ftp.com  ; Thu, 12 May 1994 09:25:07 -0400
  70. Received: from backman.minimillian by mailserv-B.ftp.com (5.0/SMI-SVR4)
  71.     id AA21681; Thu, 12 May 94 09:27:46 EDT
  72. Date: Thu, 12 May 94 09:27:46 EDT
  73. Message-Id: <9405121327.AA21681@mailserv-B.ftp.com>
  74. To: martinh@jsbus.com
  75. Subject: Re: *** WinSock 2 Interop Meeting Agenda ***
  76. From: backman@ftp.com  (Larry Backman)
  77. Cc: Multiple recipients of list <winsock@sunsite.unc.edu>
  78. Sender: backman@mailserv-B.ftp.com
  79. Repository: mailserv-B.ftp.com, [message accepted at Thu May 12 09:27:39 1994]
  80. Originating-Client: minimillian
  81. Content-Length: 3677
  82.  
  83.  
  84.  >> From winsock@sunsite.unc.edu  Thu May 12 07:32:31 1994
  85.  >> Received: from ftp.com by mailserv-B.ftp.com (5.0/SMI-SVR4)
  86.  >>         id AA20304; Thu, 12 May 94 07:32:31 EDT
  87.  >> Errors-To: towfiq@sunsite.unc.edu
  88.  >> Received: by ftp.com  ; Thu, 12 May 1994 07:29:51 -0400
  89.  >> Received: by ftp.com  ; Thu, 12 May 1994 07:29:51 -0400
  90.  >> Received: from ftp.com by ftp.com  ; Thu, 12 May 1994 07:29:44 -0400
  91.  >> Received: from calypso-2.oit.unc.edu by ftp.com  ; Thu, 12 May 1994 07:29:44 -0400
  92.  >> Received: from  (localhost.oit.unc.edu) by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
  93.  >>           id AA29365; Fri, 29 Apr 1994 20:18:28 -0400
  94.  >> Date: Fri, 29 Apr 1994 20:18:28 -0400
  95.  >> Errors-To: towfiq@sunsite.unc.edu
  96.  >> Reply-To: martinh@jsbus.com
  97.  >> Originator: winsock@sunsite.unc.edu
  98.  >> Sender: winsock@sunsite.unc.edu
  99.  >> Precedence: bulk
  100.  >> From: Martin Hall <martinh@jsbus.com>
  101.  >> To: Multiple recipients of list <winsock@sunsite.unc.edu>
  102.  >> Subject: *** WinSock 2 Interop Meeting Agenda ***
  103.  >> X-Listprocessor-Version: 6.0a -- ListProcessor by Anastasios Kotsikonas
  104.  >> content-length: 1997
  105.  >> 
  106.  >> Firstly let me apologize for the lateness of organizational
  107.  >> details for the Interop meeting. We were failed by the list
  108.  >> at the end of the day which stopped any email finding its
  109.  >> way to WinSock folks. There will therefore be people who'd
  110.  >> like to be at Interop but can't be because of how late 
  111.  >> they learnt about the event. Fear not. We will publish a
  112.  >> revised framework & requirements document after that event
  113.  >> which we will give folks a chance to comment on before we all
  114.  >> start executing on it.
  115.  >> 
  116.  
  117.  
  118.  Martin:
  119.  
  120.  As one of the original people involved in Winsock and one of the
  121.  people who have put an awful lot of effort into making Winsock
  122.  the success that it, is I am dismayed by the continual inability
  123.  of the Winsock coordinaters to communicate in a clear and consistent
  124.  fashion what is and isn't going on with respect to ongoing Winsock
  125.  work.
  126.  
  127.  I'm distressed at the attitude that sending out a message on 4/29
  128.  (which arrived 5/12) for a meeting on 5/3 is considered acceptable.
  129.  This is not the first nor the second nor the third time this
  130.  has happened.  Nor do I find it acceptable to blame the list processor
  131.  for the failure to communicate.  Those of us with budgets do not
  132.  appreciate the $1,000 3 day in advance airfare prices we have continually
  133.  been exposed to for each and every Winsock meetings.  Those of us with 
  134.  product schedules to meet do not appreciate having to pick key developers
  135.  up on 3 days notice and send them somewhere for yet another inconclusive
  136.  Winsock meeting.
  137.  
  138.  At the same time; those of us in the protocol stack business realize the
  139.  importance of Winsock and the importance of making Winsock II improve
  140.  on the deficiencies of Winsock I.  As a result; each time the Winsock
  141.  piper calls; off goes a developer to the latest Winsock ball.  While this
  142.  is good for Winsock it is not good for the manager who has to perpetually
  143.  justify internally why a key developer is going off at a moments notice
  144.  to yet another Winsock meeting.
  145.  
  146.  It is clear to me that if Winsock II is to succeed much more consistent
  147.  and constant communications from the Winsock coordinators to the masses
  148.  must occur.  Likewise; from a business management perspective; if the
  149.  Winsock coordinators want participation from others than the
  150.  "gang of 4" and true multi-vendor cooperation and interoperability
  151.  a lot more effort needs to go into leveling the playing field such that
  152.  other vendors can both participate and be heard on an equal basis.
  153.  
  154.  Larry Backman
  155.  Director of Engineering
  156.  FTP Software